﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MsForgeReboot.Framework.TownCrierChannels {
    public class PostResourceConfigurationElement : ConfigurationElement {
        private static ConfigurationProperty _postresource;
        private static ConfigurationPropertyCollection _collection;

        [ConfigurationProperty("value", IsRequired = true)]
        public string Value {
            get { return (string)base[_postresource]; }
            set { base[_postresource] = value; }
        }


        static PostResourceConfigurationElement() {
            _postresource = new ConfigurationProperty(
                "value",
                typeof(string),
                null,
                ConfigurationPropertyOptions.IsRequired
                );

            _collection = new ConfigurationPropertyCollection();
            _collection.Add(_postresource);
        }


        protected override ConfigurationPropertyCollection Properties {
            get {
                return _collection;
            }
        }

    }
}
